<template>
  <Card class="card-body" :style="{background: obj.backColor}">
    <div class="title"><img :src="obj.img"/>
      <p>{{ obj.title}}</p></div>
    <div class="card-content">
      <div class="card-content-desc" v-for="(item, index) in obj.list" :key="index">
        <p>
          {{ item.data }}
        </p>
        <p>
          {{ item.title }}
        </p>
      </div>
    </div>
  </Card>
</template>

<script>
  export default {
    name: "MaintenanDataCard",
    props: {
      obj: {
        Object,
        default: () => {}
      }
    }
  }
</script>

<style lang="less" scoped>
  .card-body {
    width: 100%;
    height: 120px;
    .title {
      font-size: 14px;
      font-weight: bold;
      img {
        float: left;
        margin-top: -10px;
      }
      p {
        margin-top: -10px;
        margin-left: 10px;
        float: left;
      }
    }
    .card-content {
      clear: both;
      display: flex;
      justify-content: space-around;
      text-align: center;
      .card-content-desc {
        margin: 20px 10px 10px 10px;
        p:nth-child(1) {
          font-weight: bold;
          font-size: 20px;
        }
        p:nth-child(2) {
          font-size: 12px;
          font-weight: bold;
          color: #888;
        }

      }
    }
  }
</style>
